﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelSoft.Unit_Test
{
    public class Person
    {
        private string firstName;
        private string lastName;

        public Person(string firstName, string lastName)
        {
            if (firstName == null && lastName == null)
            {
                throw new NotImplementedException("Both names cannot be null");
         
            }
            this.firstName = firstName;
            this.lastName = lastName;
        }

        public string getFullName()
        {
            string first = (this.firstName != null) ? this.firstName : "?";
            string last = (this.lastName != null) ? this.lastName : "?";
            return first+" "+last;
        }

        public string getFirstName()
        {
            return this.firstName;
        }

        public string getLastName()
        {
            return this.lastName;
        }
        public char[] GetLettersOfTheAlphabet()
        {
            char[] result = new char[26];
            int index = 0;
            for (int i = 65; i < 91; i++)
            {
                result[index] = Convert.ToChar(i);
                index += 1;
            }
            return result;
        } 

    }
}
